package com.xiangyang.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@SuperBuilder
@AllArgsConstructor
@NoArgsConstructor
public class Patients  extends BaseEntity{
    private Long patientId;//患者id
    private String patientName;//患者姓名
    private String patientPhone;//患者电话
     // 重写 BaseEntity 的 getId 和 setId 方法
    @Override
    public Long getId() {
        return getPatientId();
    }

    @Override
    public void setId(Long patientId) {
        setPatientId(patientId);
    }



    public void setPostId(Long patientId) {
        this.patientId = patientId;
        // 同步设置 BaseEntity 的 id
        super.setId(patientId);
    }
}
